package concurrency2;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPoolDemo {
    public static void main(String[] args) {
        ExecutorService service = Executors.newSingleThreadExecutor();
        service = Executors.newCachedThreadPool();
        service = Executors.newFixedThreadPool(8);
        service = Executors.newScheduledThreadPool(8);
    }
}
